// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import directives from './assets/js/directives'


import axios from 'axios'
//定义全局变量 - 生产环境和开发环境的
Vue.prototype.HOST = process.env.NODE_ENV === 'production' ? 'https://yzxapp.herokuapp.com' : '/api';

Vue.config.productionTip = false
directives(Vue)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
